package com.perm.kate.api;

import org.json.JSONException;
import org.json.JSONObject;

public class Country
{
  public long cid;
  public String name;

  public static Country parse(JSONObject o) throws NumberFormatException, JSONException
  {
    Country c = new Country();
    c.cid = o.getLong("id");
    c.name = o.optString("title");
    return c;
  }
}
